package cc.yugu.yhdw.webserver.persistence.hdw;

import cc.yugu.yhdw.common.domain.hdw.ExchangeOrderBatteryReportLog;
import cc.yugu.yhdw.common.entity.LocationInfo;
import cc.yugu.yhdw.common.persistence.HistoryMapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

/**
 * 换电电池上报记录
 */
public interface ExchangeOrderBatteryReportLogMapper extends HistoryMapper {
    String findTableExist(@Param("tableName") String tableName);

    List<LocationInfo> findAllMap(@Param("orderId") String orderId, @Param("suffix") String suffix, @Param("startDate") Date startDate, @Param("endDate") Date endDate);

    Date findLastReportTime(@Param("orderId") String orderId, @Param("suffix") String suffix);

    List<ExchangeOrderBatteryReportLog> findSelectPageResult(ExchangeOrderBatteryReportLog batteryOrderBatteryReportLog);

    int findAllMapCount(@Param("orderId") String orderId, @Param("suffix") String suffix, @Param("startDate") Date startDate, @Param("endDate") Date endDate);

    int findPageCount(ExchangeOrderBatteryReportLog batteryOrderBatteryReportLog);

    List<ExchangeOrderBatteryReportLog> findPageResult(ExchangeOrderBatteryReportLog batteryOrderBatteryReportLog);

    int updateAddress(ExchangeOrderBatteryReportLog batteryOrderBatteryReportLog);
}
